package com.bootdo.lgs.scheduled;

import com.bootdo.lgs.lgsInterfaces.jzy.JzyLogisticsService;
import com.bootdo.lgs.lgsInterfaces.jzy.LoginInfo;
import com.bootdo.lgs.order.service.impl.OrderServiceImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Profile;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Profile(value = "pro")
@Component
public class RefreshLogin {

    private static final Logger log = LoggerFactory.getLogger(RefreshLogin.class);

    private final static long TIME_INTERVAL= 4 * 60 * 60 * 1000;

    //@Scheduled(cron = "0 0 0 * * ?")//每天凌晨执行一次
    //@Scheduled(fixedDelay=TIME_INTERVAL) //每4小时刷新一次登陆信息
//    public void refreshLoginJob() {
//        log.debug("====== 开始 刷新今朝阳登陆信息 =======");
//        JzyLogisticsService.refreshLoginInfo();
//        log.debug("======结束 刷新今朝阳登陆信息 =======");
//    }

}
